# ###################################
# This file is managed by puppet
# PLEASE DON'T MODIFY BY HAND
# ###################################

che.api=<%= scope.lookupvar('codenvy::host_protocol') %>://<%= scope.lookupvar('codenvy::host_url') %>/api

che.user.workspaces.storage=/opt/codenvy-data/fs
vfs.local.fs_index_root_dir=${java.io.tmpdir}/fs-index
vfs.local.tmp_workspace_fs_root_dir=${java.io.tmpdir}/fs-data

mail.configuration.path=/opt/codenvy-data/conf/email-connection.properties

# status page config
maintenance.statuspage.id=<% if has_variable?('codenvy::maintenance_statuspage_id') %><%= scope.lookupvar('codenvy::maintenance_statuspage_id') %><% else %>NULL<% end %>
maintenance.statuspage.apikey=<% if has_variable?('codenvy::maintenance_statuspage_apikey') %><%= scope.lookupvar('codenvy::maintenance_statuspage_apikey') %><% else %>NULL<% end %>

# zendesk config
zendesk.shared.key=<% if has_variable?('codenvy::zendesk_shared_key') %><%= scope.lookupvar('codenvy::zendesk_shared_key') %><% else %>NULL<% end %>
zendesk.subdomain=<% if has_variable?('codenvy::zendesk_subdomain') %><%= scope.lookupvar('codenvy::zendesk_subdomain') %><% else %>NULL<% end %>

#Initial size of scheduler pool.
schedule.core_pool_size=10

# GIT
git.server.uri.prefix=git

bitbucket.endpoint=<%= scope.lookupvar('codenvy::bitbucket_endpoint').gsub(/\/$/, '') %>

# Integration
integration.factory.owner.username=<%= scope.lookupvar('codenvy::integration_factory_owner_username') %>
integration.factory.owner.password=<%= scope.lookupvar('codenvy::integration_factory_owner_password') %>

che.auth.user_self_creation=<%= scope.lookupvar('codenvy::user_self_creation_allowed') %>

# Limits
che.limits.user.workspaces.count=<%= scope.lookupvar('codenvy::limits_user_workspaces_count') %>
che.limits.user.workspaces.run.count=<%= scope.lookupvar('codenvy::limits_user_workspaces_run_count') %>
che.limits.user.workspaces.ram=<%= scope.lookupvar('codenvy::limits_user_workspaces_ram') %>
che.limits.organization.workspaces.ram=<%= scope.lookupvar('codenvy::limits_organization_workspaces_ram') %>
che.limits.organization.workspaces.count=<%= scope.lookupvar('codenvy::limits_organization_workspaces_count') %>
che.limits.organization.workspaces.run.count=<%= scope.lookupvar('codenvy::limits_organization_workspaces_run_count') %>
che.limits.workspace.idle.timeout=<%= scope.lookupvar('codenvy::limits_workspace_idle_timeout') %>
che.limits.workspace.env.ram=<%= scope.lookupvar('codenvy::limits_workspace_env_ram') %>
limits.workspace.start.throughput=5

# workspace proxy configuration
che.workspace.http_proxy=<%= scope.lookupvar('codenvy::http_proxy_for_codenvy_workspaces') %>
che.workspace.https_proxy=<%= scope.lookupvar('codenvy::https_proxy_for_codenvy_workspaces') %>
che.workspace.no_proxy=<%= scope.lookupvar('codenvy::no_proxy_for_codenvy_workspaces').split(",").uniq.join(",") %>

# During the stop of the workspace automatically creates a snapshot if the value is {true},
# otherwise just stops the workspace.
che.workspace.auto_snapshot=<%= scope.lookupvar('codenvy::workspace_auto_snapshot') %>
# During the start of the workspace automatically restored it from a snapshot if the value is {true},
# otherwise just creates the new workspace.
che.workspace.auto_restore=<%= scope.lookupvar('codenvy::workspace_auto_restore') %>
# property to enable or disable auto start of a workspace when accessing to it through its url
che.workspace.auto_start=<%= scope.lookupvar('codenvy::workspace_auto_start') %>

# Reserved names that cannot be used as account names
che.auth.reserved_user_names=api,dashboard,factory,ide-resources,main,site,swagger,ws,f,update,install-single,install-multi,install-codenvy,blog,im,codenvy,che,root
auth.sso.access_ticket_lifetime_seconds=<%= scope.lookupvar('codenvy::auth_sso_access_ticket_lifetime_seconds') %>
auth.sso.bearer_ticket_lifetime_seconds=<%= scope.lookupvar('codenvy::auth_sso_bearer_ticket_lifetime_seconds') %>

# SSO
auth.sso.client_allow_anonymous=false

# DB initialization and migration configuration
db.schema.flyway.baseline.enabled=true
db.schema.flyway.baseline.version=5.0.0.8.1.2
db.schema.flyway.scripts.prefix=
db.schema.flyway.scripts.suffix=.sql
db.schema.flyway.scripts.version_separator=__
<% if has_variable?('addon::db_schema_flyway_scripts_locations') -%>
db.schema.flyway.scripts.locations=<%= scope.lookupvar('addon::db_schema_flyway_scripts_locations') %>
<% else -%>
db.schema.flyway.scripts.locations=<%= scope.lookupvar('codenvy::db_schema_flyway_scripts_locations') %>
<% end -%>
db.jndi.datasource.name=java:/comp/env/jdbc/codenvy

# Super privileged mode
che.system.super_privileged_mode=<%= scope.lookupvar('codenvy::system_super_privileged_mode') %>

auth.blocked_country_names=<%= scope.lookupvar('codenvy::auth_blocked_country_names') %>

# email black list
emailvalidator.blacklistfile=<%= scope.lookupvar('codenvy::emailvalidator_blacklistfile') %>

# stacks loading policy
che.predefined.stacks.reload_on_start=<%= scope.lookupvar('codenvy::che_predefined_stacks_reload_on_start') %>
